const { Schema, model } = require('mongoose');

const classifysSchema = new Schema({
    name: String,
    images: String,
    foodsId: [{
        type: Schema.Types.ObjectId,
        ref: 'foodsModel'
    }]
}, { versionKey: false });

const classifysModel = model('classifysModel', classifysSchema, 'classifys');

module.exports.classifysModel = classifysModel;